package com.awt.action;

import java.awt.*;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

/**
 * @authoer zsj
 * @date 2023/4/17 11:02
 */
public class ActionDemo3
{
    public static void main(String[] args) {
        Frame frame = new Frame();
        frame.setBounds(200,200,500,300);

        frame.addWindowListener(new WindowAdapter() {
            @Override
            public void windowClosing(WindowEvent e) {
                System.exit(0);
            }
        });


        frame.setVisible(true);

    }
}
